﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SearchEngine
{
    public class Route:IComparable<Route>
    {
        public List<string> DestinationName
        {
            get;
            set;
        }

        public List<DateTime> StartHour
        {
            get;
            set;
        }

        public List<string> RoadSegments
        {
            get;
            set;
        }

        public List<DateTime> EndHour
        {
            get;
            set;
        }

        public decimal Price
        {
            get;
            set;
        }

        public string TotalTime
        {
            get;
            set;
        }

        public string WayStationInfo
        {
            get;
            set;
        }

        public int CompareTo(Route other)
        {
            return this.Price.CompareTo(other.Price);
        }
        #region old
        //public List<TimedRoadSegment> trsList
        //{
        //    get;
        //    set;
        //}

        //public string FullRoute
        //{
        //    get;
        //    set;
        //}

        //public int Price
        //{
        //    get;
        //    set;
        //}

        //public Route()
        //{
        //    trsList = new List<TimedRoadSegment>();
        //}
        #endregion
    }
}
